package angryballsDecorateur.sounds;

import java.applet.Applet;
import java.applet.AudioClip;
import java.io.File;

public class Sound {

	private static AudioClip clip;

	public Sound(File file) {
		try {
			clip = Applet.newAudioClip(file.toURI().toURL());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public void play() {
		clip.play();
	}
}
